Giter VIP home page Giter VIP logo

centreon-nsclient-build's Introduction

Centreon - IT and Application monitoring software

stable version  License  Centreon bug tracker  Official documentation  Official Slack  Official website  Official Download  Official The Watch  

Centreon Twitter  Centreon Labs Twitter  

Centreon ScreenShot

Introduction

Centreon is one of the most flexible and powerful monitoring softwares on the market; it is absolutely free and Open Source.

Getting Started

Centreon software can be set up

Supported versions

Regarding the Products Lifecycle Policy, only the following versions are supported:

  • Centreon 21.10.x, released on November 2, 2021, full support
  • Centreon 21.04.x, released on April 21, 2021, security and blocking issue support only
  • Centreon 20.10.x, released on October 21, 2020, security support only

If your version is not one of the 3 versions specified above, we recommend that you upgrade your platform immediately.

Authors

Project leaders

   

Product managers

       

Development team

                             

Quality Assurance

       

Documentation

 

See also the list of our contributors

Security Acknowledgement page

We want to thank all reporters and pentesters who help us improve our product each day.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, bug report, feature request and the process for submitting pull requests for us.

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details

centreon-nsclient-build's People

Contributors

bmareau avatar cgagnaire avatar garnier-quentin avatar kabreu avatar lpinsivy avatar omercier avatar s-duret avatar sims24 avatar thibaults-centreon avatar tpo76 avatar travisci-centreon-plugins avatar urbnw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lune001 urbnw erawor

centreon-nsclient-build's Issues

No output returned from plugin - Nsclient

I have installed NRPE on centreon. However when added a host and use the template, it returned the error.

Upon investigate, I found the execute check command line is /usr/lib64/nagios/plguin// check_centreon_nrpe.

If I manual type /usr/lib/nagio/plugin//check_centreon_nrpe" it worked.

How can I change the default command point to lib instead lib64?
error

centreon_plugins.exe can hang forever

Hi,

centreon_plugins.exe, called by NSClient++, can hang forever, accumulating processes and memory consumption on the monitored Windows machine.

Below is the faulty behaviour we discovered with an unpatched Net::NTP (see #25 and centreon/centreon-plugins#2129).
But seems to be a more general issue, as I tend to demonstrate below.

With following nsclient.ini configuration :

[/settings/external scripts]
timeout=10

And using centreon_plugins.pl --plugin=apps::protocols::nrpe::plugin --custommode=nsclient --new-api ... as client (should be the case with other clients too).

When launching the centreon_plugins.pl command, we see 2 new centreon_plugins.exe processes appearing :

1

10 seconds later, the centreon_plugins.pl returns with the following :
Command check_centreon_plugins didn't terminate within the timeout period 10s
Additional --debug gives :
{"command":"check_centreon_plugins","lines":[{"message":"Command check_centreon_plugins didn't terminate within the timeout period 10s","perf":{}}],"result":3}

And on Windows side, one of the 2 processes disappears, for sure killed by NSClient++ :

2

Unfortunately, as you can see, the bigger one remains, and it hangs forever.
So seems like NSclient++ does its job killing the external command, perhaps there's an issue with signal handling / forwarding in centreon_plugins.exe itself.

Even with a dummy sleep in the plugin's code as a really simple test case, the second process does not get killed.

Thx 👍

Embedded plugin configuration files ?

Hi,

Some plugins need a configuration file, I think about qwinsta.xml and dcdiag.xml.
For now these configuration files sit next to centreon_plugins.exe.

Is there any way to put these default .xml configuration files into the centreon_plugins.exe binary archive, so that the plugins which need them would point their --config option to these embedded files by default ?
Would rather be convenient.

Thank you 👍

apps::activedirectory::local::plugin problem

Hi,

I have a server where the plugin does'nt work:
/usr/lib64/nagios/plugins/check_centreon_nrpe -H 10.0.1.4 -p 5666 -t 55 -u -m 8192 -c check_centreon_plugins -a 'apps::activedirectory::local::plugin' 'dcdiag' ' --config="scripts/centreon/conf/dcdiag.xml" --language="en" '

UNKNOWN: Cannot match output test (maybe you need to set the good language) |

Here's the DCDIAG.EXE output on the server:

C:\Users\Administrator>dcdiag

Directory Server Diagnosis

Performing initial setup:
   Trying to find home server...
   Home Server = SRV-AD-BXL
   * Identified AD Forest.
   Done gathering initial info.

Doing initial required tests

   Testing server: Bruxelles\SRV-AD-BXL
      Starting test: Connectivity
         The host cdb7cd38-b7fe-4f51-a5ef-1d567e988b28._msdcs.mydomain.local
         could not be resolved to an IP address. Check the DNS server, DHCP,
         server name, etc.
         Got error while checking LDAP and RPC connectivity. Please check your
         firewall settings.
         ......................... SRV-AD-BXL failed test Connectivity

Doing primary tests

   Testing server: Bruxelles\SRV-AD-BXL
      Skipping all tests, because server SRV-AD-BXL is not responding to
      directory service requests.


   Running partition tests on : ForestDnsZones
      Starting test: CheckSDRefDom
         ......................... ForestDnsZones passed test CheckSDRefDom
      Starting test: CrossRefValidation
         ......................... ForestDnsZones passed test
         CrossRefValidation

   Running partition tests on : DomainDnsZones
      Starting test: CheckSDRefDom
         ......................... DomainDnsZones passed test CheckSDRefDom
      Starting test: CrossRefValidation
         ......................... DomainDnsZones passed test
         CrossRefValidation

   Running partition tests on : Schema
      Starting test: CheckSDRefDom
         ......................... Schema passed test CheckSDRefDom
      Starting test: CrossRefValidation
         ......................... Schema passed test CrossRefValidation

   Running partition tests on : Configuration
      Starting test: CheckSDRefDom
         ......................... Configuration passed test CheckSDRefDom
      Starting test: CrossRefValidation
         ......................... Configuration passed test CrossRefValidation

   Running partition tests on : mydomain
      Starting test: CheckSDRefDom
         ......................... mydomain passed test CheckSDRefDom
      Starting test: CrossRefValidation
         ......................... mydomain passed test CrossRefValidation

   Running enterprise tests on : mydomain.local
      Starting test: LocatorCheck
         Warning: DcGetDcName(PDC_REQUIRED) call failed, error 1355
         A Primary Domain Controller could not be located.
         The server holding the PDC role is down.
         ......................... mydomain.local failed test LocatorCheck
      Starting test: Intersite
         ......................... mydomain.local passed test Intersite

Nsclient build + latest changes

Hi all,
i notice that in configuration file version still 20200602 and when i try using local iis plugin with --filter-name switch i got this error @garnier-quentin

[root@xxx ~]# /usr/lib/nagios/plugins//check_centreon_nrpe3 -H XXX -p 5666 -2 -P 8192 -n -c check_centreon_plugins -a 'apps::iis::local::plugin' 'applicationpool-state' '--filter-name=CreditoPool'

Unknown option: filter-name at C:\Windows\TEMP\par-45554954504f5057534e30303424\cache-d8d133336a6054ae0c3a8a3ab49b191ecf0a4127\inc\lib/centreon/plugins/alternative/Getopt.pm line 67.

Thanks

apps::backup::veeam::local::plugin problems

Hi,

I think I found 2 bugs in Veeam Plugin.

  • 1st, jobs with non standard characters make the plugin fail.

I have a server where one of the jobs is called "Réplication vCSA". Here's the result:
# /usr/lib64/nagios/plugins/check_centreon_nrpe -H x.x.x.x -p 5666 -t 55 -u -m 8192 -c check_centreon_plugins -a 'apps::backup::veeam::local::plugin' 'job-status' ' --filter-name="" --filter-start-time="" --filter-end-time="86400" --filter-counters="" --ok-status="%{is_running} == 0 and %{status} =~ /Success/i" --warning-status="%{is_running} == 0 and %{status} =~ /Warning/i" --critical-status="%{is_running} == 0 and %{status} =~ /Failed/i" --warning-long="" --critical-long="" --verbose'

UNKNOWN: Cannot decode json response: malformed UTF-8 character in JSON string, at character offset 226 (before "\x{fffd}plication vC...") at C:\Windows\TEMP\par-5352562d4241434b555024\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/apps/backup/veeam/local/mode/jobstatus.pm line 173.
If I rename the job (replace "é" with "e"), it's working.

  • 2nd, mode "tape-jobs" isn't working at all:
    # /usr/lib64/nagios/plugins/check_centreon_nrpe -H 10.20.1.234 -p 5666 -t 55 -u -m 8192 -c check_centreon_plugins -a 'apps::backup::veeam::local::plugin' 'tape-jobs' ' --verbose'
UNKNOWN: Cannot load module --mode.
Can't locate apps/backup/veeam/local/mode/tapejobs.pm in @INC (you may need to install the apps::backup::veeam::local::mode::tapejobs module) (@INC contains: C:/Program Files/centreon-nsclient/NSClient++/scripts/centreon C:\Windows\TEMP\par-5352562d4241434b555024\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib C:\Windows\TEMP\par-5352562d4241434b555024\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc CODE(0x2767410) CODE(0x2767608)) at C:\Windows\TEMP\par-5352562d4241434b555024\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/centreon/plugins/misc.pm line 222.

I took a look at "C:\Windows\Temp\par-5352562d4241434b555024\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib\apps\backup\veeam\local\mode" and tapejobs.pm is missing

[os::windows::local::plugin] mode=list-storages - Use of uninitialized value in subroutine

Tested with Plugin version 20200803 and 20201008

C:\Users\Administrator\Desktop\centreon_plugins.exe --plugin=os::windows::local::plugin --mode=list-storages --disco-show
Use of uninitialized value in subroutine entry at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e6973747261746f72\cache-7a0161dff2ed6330ffd6cada04bd0511adbd08bc\inc\lib/XML/LibXML.pm line 1649.
Use of uninitialized value in subroutine entry at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e6973747261746f72\cache-7a0161dff2ed6330ffd6cada04bd0511adbd08bc\inc\lib/XML/LibXML.pm line 1649.
Use of uninitialized value in subroutine entry at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e6973747261746f72\cache-7a0161dff2ed6330ffd6cada04bd0511adbd08bc\inc\lib/XML/LibXML.pm line 1649.
<?xml version="1.0" encoding="utf-8"?>
<data>
  <label type="localDisk" size="53092544512" free="20984086528" name="C:" desc=""/>
  <label type="compactDisc" name="D:" desc="" free="" size=""/>
</data>

Development build ?

Hi,

After every commit in the centreon-plugins repository, the corresponding rpm packages are built and made available in the unstable repository.

Is there any place where we could also find the unstable centreon_plugins.exe built accordingly ?

Would really be convenient.

Many thanks 👍

UNKNOWN: Cannot load module --plugin.

Problem with centreon_plugins.exe

I have install the centreon_plugins_20210427_606ac5397_966b834_x64.exe on Windows 2019 Server.

The installation is OK, but the centreon_plugins.exe is not working properly.

When I try to list mode of plugin I have the following result :

C:\Program Files\Centreon NSClient++\scripts\centreon>centreon_plugins.exe --plugin='apps::microsoft::activedirectory::local::plugin' --mode='dcdiag' --help
UNKNOWN: Cannot load module --plugin.
Can't locate 'apps/microsoft/activedirectory/local/plugin'.pm in @INC (@INC contains: C:/Program Files/Centreon NSClient++/scripts/centreon C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc CODE(0x37e4f80) CODE(0x37e5178)) at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib/centreon/plugins/misc.pm line 222.

C:\Program Files\Centreon NSClient++\scripts\centreon>centreon_plugins.exe --plugin='apps::protocols::http::plugin' --list-mode
UNKNOWN: Cannot load module --plugin.
Can't locate 'apps/protocols/http/plugin'.pm in @INC (@INC contains: C:/Program Files/Centreon NSClient++/scripts/centreon C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc CODE(0x3702f98) CODE(0x3703190)) at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib/centreon/plugins/misc.pm line 222.

But when I check in the directory displayed in message the file is presents :

C:\Program Files\Centreon NSClient++\scripts\centreon>dir C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib\apps\microsoft\activedirectory\local\
 Le volume dans le lecteur C na pas de nom.
 Le numéro de série du volume est B05D-634E

 Répertoire de C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib\apps\microsoft\activedirectory\local

28/07/2021  15:21    <DIR>          .
28/07/2021  15:21    <DIR>          ..
28/07/2021  15:21    <DIR>          mode
28/07/2021  15:21             1 499 plugin.pm
               1 fichier(s)            1 499 octets
               3 Rép(s)  78 068 322 304 octets libres

How can I resolve this issue?

Thx

check_tasksched - exclure une tache planifiée

Bonjour,

Je cherche comment exclure une tache planifié en erreur du check check_tasksched.

Ma commande est la suivante

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 1.2.3.4 -p 1234 -t 30 -u -2 -P 8192 -c check_tasksched -a "filter=enabled eq 1 and has_run eq 1" "warning=task_status = 'running' and most_recent_run_time < -60m" "critical=task_status not in ('running') and exit_code > 0" "perf-config=*(ignored:true)" .

et l'erreur est

Status information
CRITICAL: \Microsoft\Windows\BrokerInfrastructure/BgTaskRegistrationMaintenanceTask: 268435456 != 0,

Pouvez-vous m'aider ?

Cordialement

Error install perl module (HTTP::ProxyPAC and IO::Socket::SSL)

Hello everyone :)

When I install "HTTP::ProxyPAC" and "IO::Socket::SSL" perl module, I have this problem :

  • HTTP::ProxyPAC :
    [...]
    t/01_proxy.t ....... Dubious, test returned 9 (wstat 2304, 0x900)
    Failed 16/26 subtests
    t/02_from_rival.t .. # testing with je interpreter and javascript PAC-library
    t/02_from_rival.t .. 1/18 # testing with je interpreter and perl PAC-library
    t/02_from_rival.t .. ok

Test Summary Report

t/01_proxy.t (Wstat: 2304 Tests: 10 Failed: 0)
Non-zero exit status: 9
Parse errors: Bad plan. You planned 26 tests but ran 10.
Files=3, Tests=29, 3 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU)
Result: FAIL
Failed 1/3 test programs. 0/29 subtests failed.
gmake: *** [Makefile:854: test_dynamic] Error 255
MACKENNA/HTTP-ProxyPAC-0.31.tar.gz
C:\STRAWB~1\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MACKENNA/HTTP-ProxyPAC-0.31.tar.gz
Stopping: 'install' failed for 'HTTP::ProxyPAC'.

  • IO::Socket::SSL :
    [...]
    t/sni_verify.t .................... Failed 3/17 subtests
    (less 3 skipped subtests: 11 okay)
    t/start-stopssl.t ................. ok
    t/startssl-failed.t ............... ok
    t/startssl.t ...................... ok
    t/sysread_write.t ................. ok
    t/verify_fingerprint.t ............ ok
    t/verify_hostname.t ............... ok
    t/verify_hostname_standalone.t .... ok
    t/verify_partial_chain.t .......... ok

Test Summary Report

t/sni_verify.t (Wstat: 0 Tests: 17 Failed: 3)
Failed tests: 10, 12, 14
Files=42, Tests=808, 50 wallclock secs ( 0.16 usr + 0.08 sys = 0.23 CPU)
Result: FAIL
Failed 1/42 test programs. 3/808 subtests failed.
gmake: *** [Makefile:875: test_dynamic] Error 255
SULLR/IO-Socket-SSL-2.072.tar.gz
C:\STRAWB~1\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SULLR/IO-Socket-SSL-2.072.tar.gz
Stopping: 'install' failed for 'IO::Socket::SSL'.

I work in Windows Server 2019 Standard.
The version of perl : This is perl 5, version 32, subversion 1 (v5.32.1) built for MSWin32-x64-multi-thread
(I tried with perl 5.26, same problem)

Thank's for your help.

Florian

Can't use the Webserver

Hello,
I'm just trying to access the the web with a fresh new install of Centreon NSClient++.
I have tried to insert manually a password, I tried the commands nscp web -- password -set 123, the nscp web install --password=123 and I also tried to insert à password = 123 in the nsclient.ini [/settings/WEB/server] or /settings/default

Behavior that I saw :
When connecting to the page the console is giving errors :

glyphicons-halflings-regular.woff2:1 

       Failed to load resource: the server responded with a status of 404 ()
fontawesome-webfont.woff2:1 

       Failed to load resource: the server responded with a status of 404 ()
login.js:11 Is logged inS
jquery-1.11.1.min.js:4 

.
If I type the wrong password, the page is correctly telling me that the password is incorrect

If I type the correct password, the password prompt is still there without error but in the console i'm seeing 403 forbidden messages.
And I cannot navigate to the other menus. (Even tho I can see a "Is logged in" in the logs)
image

I have tried with Brave and Edge.

I'm joining you the nsclient.logs and web console logs :
localhost-1704456102076.log

nsclient.log

I've tried with versions

  • Centreon-NSClient-0.5.2.41-20211102-x64.exe
  • Centreon-NSClient-0.5.2.41-20210427-x64.exe

os::windows::local::plugin session mode

Hi,

I'm trying to use the plugin "os::windows::local::plugin" to list RDS sessions...
First, the plugin have a permission problem:
/usr/lib64/nagios/plugins/check_centreon_nrpe -H 192.168.x.x -p 5666 -t 55 -u -m 8192 -c check_centreon_plugins -a 'os::windows::local::plugin' 'sessions' ' --filter-sessionname="" --config="scripts/centreon/conf/qwinsta.xml" --language="fr"'

Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
UNKNOWN: Cannot write statefile '/var/lib/centreon/centplugins/windows_sessions_a181a603769c1f98ad927e7367c7aa51_a181a603769c1f98ad927e7367c7aa51'. Need write/exec permissions on directory.

For testing, I granted "Everyone" full access to C:\Windows\Temp (ugly fix!).
Looks better but I still have errors:

Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
Use of uninitialized value in regexp compilation at C:\Windows\TEMP\par-5352562d52445324\cache-e911f522c2e788f4c9128b42d8f6076582f7d9e4\inc\lib/os/windows/local/mode/sessions.pm line 238.
UNKNOWN: Cannot write statefile '/var/lib/centreon/centplugins/windows_sessions_a181a603769c1f98ad927e7367c7aa51_a181a603769c1f98ad927e7367c7aa51'. Need write/exec permissions on directory.
 [ID => 8] [PRIPHRIQUE => -] [SESSION => rdp-tcp#16] [TYPE => -] [UTILISATEUR => Administrateur] [TAT => Actif]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.